<?php $this->load->view("admin/$adminCurrentTemplate/commonHead")?>
    	<ul>
        	<li class="guid">
            	<ul>
                    <li class="chkBox"><input type="checkbox" name="all" id="all" /></li>
                    <li class="create-time">登陆时间</li>
                    <li class="cate">登陆用户</li>
                    <li class="title">登陆IP</li>
                </ul>
            </li>
            <form name="listForm" id="listForm" method="post" action="<?php echo $phpSelf;?>">
            <input type="hidden" name="del" id="del" value="" />
            <input type="hidden" name="active" id="active" value="" />
            <?php 
            if(count($adminLoginLogList)>0){
            	foreach($adminLoginLogList as $item):
            ?>            
        	<li class="item">
            	<ul>
            		<li class="chkBox"><input type="checkbox" name="id[]" id="id_<?php echo $item->id?>" class="id-checkbox" value="<?php echo $item->id?>" /></li>
                    <li class="create-time" title="<?php echo $item->loginTime;?>"><?php echo date('Y-m-d',strtotime($item->loginTime));?></li>
                    <li class="cate"><?php echo $item->loginUserName?></li>
                    <li class="title" title="<?php echo $item->loginIP;?>"><?php echo $item->loginIP?></li>
                    <li class="single-menu"><a href="#" title="修改" class="edit">修改</a><a href="#" title="删除" class="del">删除</a></li>
                </ul>
            </li>
            <?php 
            	endforeach;
            ?>
            <div class="apptend-container hide"></div>
            </form>
            <li class="page">
            	<?php echo $this->pagination->create_links();?>
            </li>
            <?php 
            }else{
            ?>
            <div class="apptend-container hide"></div>
            </form>
            <li class='no-list'>对不起，暂无数据！</li>
            <?php }?>
        </ul>
<div class="searchBox hide">
	<div class="search-box-row">
		<span class="guid">登陆名：</span>
		<span class="formItem"><input type="text" name="userName" id="userName" value="<?php if(isset($rUserName)) echo $rUserName;?>" class="txtBox" /></span>
	</div>
	<div class="search-box-row">
		<span class="guid">登陆IP：</span>
		<span class="formItem"><input type="text" name="loginIP" id="loginIP" value="<?php if(isset($rLoginIP)) echo $rLoginIP;?>" class="txtBox" /></span>
	</div>
	<div class="search-box-row">
		<span class="guid">登陆时间：</span>
		<span class="formItem"><input type="text" name="loginTimeStart" id="loginTimeStart" value="<?php if(isset($rLoginTimeStart)) echo $rLoginTimeStart;?>" class="timeBox" onClick="WdatePicker();" readonly="readonly" /><label>至</label><input type="text" name="loginTimeEnd" id="loginTimeEnd" value="<?php if(isset($rLoginTimeEnd)) echo $rLoginTimeEnd;?>" class="timeBox" onClick="WdatePicker();" readonly="readonly" /></span>
	</div>
</div>
<script type="text/javascript">
var editWidth = 358;
var editHeight = 268;
var searchWidth = 315;
var searchHeight = 153;
$(function(){
	$('.apptend-container').html($('.searchBox').html());
});
</script>
<?php $this->load->view("admin/$adminCurrentTemplate/commonFoot");?>

<script type="text/javascript">
$(function(){	
	var page_userName = $('.apptend-container #userName').val();
	var page_loginIP = $('.apptend-container #loginIP').val();
	var page_loginTimeStart = $('.apptend-container #loginTimeStart').val();
	var page_loginTimeEnd = $('.apptend-container #loginTimeEnd').val();
	var paramSplit = '&';
	var paramString = '';
	if(page_userName.length>0){
		if(paramString.length>0){
			paramString += paramSplit;
		}
		paramString += 'userName=' + page_userName;
	}
	if(page_loginIP.length>0){
		if(paramString.length>0){
			paramString += paramSplit;
		}
		paramString += 'loginIP=' + page_loginIP;
	}
	if(page_loginTimeStart.length>0){
		if(paramString.length>0){
			paramString += paramSplit;
		}
		paramString += 'loginTimeStart=' + page_loginTimeStart;
	}
	if(page_loginTimeEnd.length>0){
		if(paramString.length>0){
			paramString += paramSplit;
		}
		paramString += 'loginTimeEnd=' + page_loginTimeEnd;
	}
	$('.page a').each(function(){
		var self = $(this);
		var selfHref = self.attr('href');
		if(paramString.length>0){
			self.attr('href',selfHref + '?' + paramString);
		}
	});	
});
</script>